class Rectangle:
    def __init__(self, width, height):
        self.width = width
        self.height = height

    def area(self):
        return self.width * self.height

# 实例化一个矩形对象
rect = Rectangle(5, 3)

# 计算并打印面积
print(rect.area())  # 输出：15